<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 

<%String path = request.getContextPath();%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
    <link href="<%=path %>/css/index.css" type="text/css" rel="stylesheet" />
    <link href="<%=path %>/css/base.css" type="text/css" rel="stylesheet" />
    
    <style type="text/css">
		.c1-bline{border-bottom:#999 1px dashed;border-top:1px;}
		.f-right{float:right}
		.f-left{float:left}
		.clear{clear:both}
	</style>
	

    <script type="text/javascript">
        function orderDel(id)
        {
            var url="<%=path %>/orderDel.action?id="+id;
            window.location.href=url;
        }
        
        function orderDetailQian(id)
        {
                 var url="<%=path %>/orderDetailQian.action?orderId="+id;
                 var ret = window.showModalDialog(url,"","dialogWidth:800px; dialogHeight:500px; dialogLeft: status:no; directories:yes;scrollbars:yes;Resizable=no;");
        }
	</script>
	
	
</head>
  
<body>
	<div class="banner">
        <jsp:include flush="true" page="/qiantai/top.jsp"></jsp:include>
	</div>


    <div class="main01" style="margin-top: 10px;border: 0px;">
    	<!-- <h2>
            <span style="font-size: 18px;font-weight:900 ">我的订单</span>
            <div class="right" style="font-size: 14px;">dd</div>
        </h2> -->
        <div class="">
        	  <c:forEach items="${requestScope.orderList}" var="order">
						               <fieldset style="width:99%; margin-left:5px;"><legend class="fieldtitle"></legend>
											<table width="99%" cellpadding="3" cellspacing="3">
											    <tr style="height: 33px;">
											        <td>订单编号：${order.bianhao}</td>
											    </tr>
											    <tr style="height: 33px;">
											        <td>下单时间：${order.xiadanshi}</td>
											    </tr>
											    <tr style="height: 33px;">
											        <td>收货人姓名：${order.userRealname}</td>
											    </tr>
											    <tr style="height: 33px;">
											        <td>联系电话：${order.userTel}</td>
											    </tr>
											    <tr style="height: 33px;">
											        <td>送货地址：${order.songhuodizhi}</td>
											    </tr>
											    <tr style="height: 33px;">
											        <td>付款方式：${order.fukuanfangshi}</td>
											    </tr>
											    <tr style="height: 33px;">
											        <td>订单金额：${order.jine}</td>
											    </tr>
											    <tr style="height: 33px;">
											        <td>订单状态：${order.zhuangtai}</td>
											    </tr>
											    <tr style="height: 33px;">
											        <td>
											           <input type="button" value="订单明细" style="width: 88px;" onclick="orderDetailQian(${order.id})">
											           <input type="button" value="删除" style="width: 88px;" onclick="orderDel(${order.id})">
											        </td>
											    </tr>
											</table>
									   </fieldset>
									   <br/>
									   </c:forEach> 
        </div>
    </div>
    
    
    <br/>
    <div class="bottom">
        <jsp:include flush="true" page="/qiantai/down.jsp"></jsp:include>
    </div>
</body>
</html>
